package cn.com.chengmandian.service.erp;

import cn.com.chengmandian.core.web.pojo.AjaxResult;
import cn.com.chengmandian.service.erp.fallback.ErpStockClientFallback;
import cn.com.chengmandian.service.erp.form.PurchaseApplyAuditSuccessForm;
import cn.com.chengmandian.service.erp.form.StockApplyAuditForm;
import cn.com.chengmandian.service.erp.form.StockApplyBatterySignForm;
import cn.com.chengmandian.service.erp.form.StockApplySignForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "cmd-erp-stock",fallback = ErpStockClientFallback.class)
public interface ErpStockClient {

    @PostMapping("/erpstock/inner/stock/purchase/apply/audit")
    AjaxResult purchaseApplyAudit(@RequestBody PurchaseApplyAuditSuccessForm form);

    @PostMapping("/erpstock/inner/stock/apply/audit")
    AjaxResult stockApplyAudit(@RequestBody StockApplyAuditForm form);

    @PostMapping("/erpstock/inner/stock/apply/sign")
    AjaxResult stockApplySign(@RequestBody StockApplySignForm form);

    @PostMapping("/erpstock/inner/stock/apply/battery/sign")
    AjaxResult stockApplyBatterySign(@RequestBody StockApplyBatterySignForm form);
}
